<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <link rel="icon" type="image/svg+xml" href="/vite.svg" />
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <title>抖音授权</title>
        <style>
            body{
                padding: 0px;
                margin: 0px;
            }
        </style>
    </head>
    <body >
        <iframe id="myFrame" style="width: 100%;height: 100vh;" src="" ></iframe>
    </body>
    <script>
        const query = new URLSearchParams(window.location.search);
        const activity_id = query.get('activity_id');
        const mode = query.get('mode');
        const sp = "user_info,data.external.item,data.external.user,video.create.bind,renew_refresh_token,video.list.bind,video.data.bind,h5.share,open.get.ticket,js.ticket,jsb.open.auth,jsb.open.showAuth,item.comment";
        document.getElementById("myFrame").src= "https://open.douyin.com/platform/oauth/connect/?client_key=awuqn0hrlxer5q5c&response_type=code&scope="+ sp +"&redirect_uri=https://h5.bohaojy.cn/&state="+ activity_id +"@"+mode

    </script>
</html>